branchbefore/main/GC Optimizationscancel
9 Commits over 0 Days - ∞cph!
Agents that are Units actually store unit properly (well, semi-properly) now in DM.
DM decisions optimized (but not tested yet).
Created a FixedArray class that handles all this fixed array stuff, letting us work safely with the arrays using IEnumerable (foreach, etc).
Surrounding Units and Surrounding SmartObjects are now moved to the new fixed array approach.
KnownBuildings and misc touchups.
Perceived/Known Units and Perceived/Known Smart Objects in Unit+Senses and DM are now optimized.
Known Smart Objects in Group+Knowledge is now optimized.
Work in progress on optimizing Alloc/Dealloc/GC-issues in DM and Unit+Senses.